package br.com.news.dao.interfaces;

import java.util.List;

import br.com.news.dao.util.interfaces.IGenericDao;
import br.com.news.exception.DataException;
import br.com.news.modal.NoticiaBean;

public interface INoticiaDao extends IGenericDao<NoticiaBean>{
	
	/**
	 * Retorna noticias pelo id Categoria
	 * 
	 * @param idCategoria
	 * @return List<NoticiaBean>
	 * @throws DataException
	 */
	List<NoticiaBean> findNoticiaByIdCategoria(long idCategoria) throws DataException;
	
	NoticiaBean buscaUltimaNoticia(long idCategoria) throws DataException;

}
